home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / S-DYNIX3.H < prev    next >
C/C++ Source or Header  |  1989-07-11  |  3KB  |  144 lines

  1. /*
  2.  *    This version is for Dynix 3.0 systems
  3.  */
  4.  
  5.  
  6. /*
  7.  *    Include haeder files containing the following definitions:
  8.  *
  9.  *         off_t, time_t, struct stat
  10.  */
  11.  
  12. #include <sys/types.h>
  13. #include <sys/stat.h>
  14.  
  15.  
  16. /*
  17.  *    Define if your system has system V like ioctls
  18.  */
  19.  
  20. #undef    HAVE_TERMIO            /* */
  21.  
  22. /*
  23.  *    Define to use terminfo database.
  24.  *    Otherwise, termcap is used
  25.  */
  26.  
  27. #undef    USE_TERMINFO            /* */
  28.  
  29. /*
  30.  *    Specify the library (or libraries) containing the termcap/terminfo
  31.  *    routines.
  32.  *
  33.  *    Notice:  nn only uses the low-level terminal access routines
  34.  *    (i.e. it does not use curses).
  35.  */
  36.  
  37. #define TERMLIB    -ltermlib
  38.  
  39. /*
  40.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  41.  */
  42.  
  43. #include <string.h>
  44.  
  45. #undef HAVE_STRCHR            /* */
  46.  
  47. /*
  48.  *    Define if a signal handler has type void (see signal.h)
  49.  */
  50.  
  51. #undef    SIGNAL_HANDLERS_ARE_VOID    /* */
  52.  
  53. /*
  54.  *    Define MICRO_ALARM to timeout in 0.1 seconds if possible
  55.  */
  56.  
  57. #define MICRO_ALARM()    alarm(1)    /* could use setitimer ... */
  58.  
  59. /*
  60.  *    Define if your system has BSD like job control (SIGTSTP works)
  61.  */
  62.  
  63. #define HAVE_JOBCONTROL            /* */
  64.  
  65. /*
  66.  *    Define if your system provides the "directory(3X)" access routines
  67.  *
  68.  *    If true, include the header file(s) required by the package below
  69.  *    (remember that <sys/types.h> or equivalent is included above)
  70.  *    Also typedef Direntry to the proper struct type.
  71.  */
  72.  
  73. #define    HAVE_DIRECTORY            /* */
  74.  
  75. #include <sys/dir.h>            /* BSD */
  76.  
  77. typedef struct direct Direntry;        /* BSD */
  78.  
  79. /*
  80.  *    Define if your system has a mkdir() library routine
  81.  */
  82.  
  83. #define    HAVE_MKDIR            /* */
  84.  
  85. /*
  86.  *    Define if your system provides a BSD like gethostname routine.
  87.  *    Otherwise, define HAVE_UNAME if uname() is avaiable.
  88.  */
  89.  
  90. #define    HAVE_GETHOSTNAME    /* BSD systems */
  91.  
  92. /*
  93.  *    Define DETATCH_TERMINAL to be a command sequence which 
  94.  *    will detatch a process from the control terminal
  95.  *    Also include system files needed to perform this HERE.
  96.  *    If not possible, just define it (empty)
  97.  */
  98.  
  99. #include <sys/file.h>    /* for O_RDONLY */
  100. #include <sys/ioctl.h>    /* for TIOCNOTTY */
  101.  
  102. #define    DETATCH_TERMINAL \
  103.     { int t = open("/dev/tty", O_RDONLY); \
  104.       if (t >= 0) ioctl(t, TIOCNOTTY, (int *)0), close(t); }
  105.  
  106.       
  107. /* 
  108.  *    Specify where the Bourne Shell is.
  109.  */
  110.  
  111. #define SHELL        "/bin/sh"
  112.  
  113. /*
  114.  *    Specify the default mailer to be invoked by nnmail
  115.  */
  116.  
  117. #define    MAILX    "/usr/ucb/Mail"        /* BSD */
  118.  
  119.  
  120. /*
  121.  *    Specify the default pager & options.
  122.  */
  123.  
  124. #define    PAGER        "more"
  125.  
  126. /*
  127.  *    Specify the default print command and options.
  128.  */
  129.  
  130. #define    PRINTER        "imprint"
  131.  
  132.  
  133. /*
  134.  *    Define the maximum length of any pathname that may occur
  135.  */
  136.  
  137. #define    FILENAME     256
  138.  
  139. /*
  140.  * Extra libraries needed on the Symmetry
  141.  */
  142.  
  143. #define EXTRA_LIB
  144.